

using MS.Core.JsonConverters;
using Newtonsoft.Json;
using SqlSugar;

namespace ReportDesignerServer.DataModels
{
    /// <summary>
    /// 角色实体
    /// </summary>
    [SugarTable("sys_role")]
    public class Role
    {
        [JsonConverter(typeof(LongToStringConverter))]
        [SugarColumn(IsPrimaryKey = true)]
        public long id { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        /// 

        [SugarColumn(IsNullable = true)]
        public string? name { get; set; }

        /// <summary>
        /// 角色编码
        /// </summary>
        /// 

        [SugarColumn(IsNullable = true)]
        public string? code { get; set; }

        /// <summary>
        /// 显示顺序
        /// </summary>
        /// 
        [SugarColumn(IsNullable = true)]
        public int? sort { get; set; }

        /// <summary>
        /// 角色状态(1-正常 0-停用)
        /// </summary>
        /// 

        [SugarColumn(IsNullable = true)]
        public int? status { get; set; }

        /// <summary>
        /// 数据权限
        /// </summary>
        /// 
        [SugarColumn(IsNullable = true)]
        public int? dataScope { get; set; }

        [SugarColumn(IsNullable = true)]
        public DateTime? create_time { get; set; }



        ///// <summary>
        ///// 是否删除(0-否 1-是)
        ///// </summary>
        ///// 
        //[SugarColumn(IsNullable = true)]
        //public int? isDeleted { get; set; }
    }
}